<template>
    <div class="login-container">
        <!--        <div style="margin-right: 150px; min-width: 300px">
                    <img alt="" src="../../public/login_Team.png" style="width: 600px"/>
                </div>-->
       
        <!-- 登录表单容器 -->
        <div style="width: 400px; margin: 150px auto">
            <!-- 登录表单标题 -->
            <div style="font-size: 24px; text-align: center; padding: 30px 0; color: #fff;"><span style="color: #ffffff;">管理员登录</span></div>
            
            <!-- 用户输入的表单 -->
            <el-form ref="form" :model="form" :rules="rules" size="large">
                <!-- 管理员ID输入框 -->
                <el-form-item prop="username" style="color: #fff;">
                    <el-input v-model.number="form.adminId" clearable prefix-icon="avatar" placeholder="请输入管理ID"></el-input>
                </el-form-item>

                <!-- 密码输入框 -->
                <el-form-item prop="password">
                    <el-input v-model="form.password" prefix-icon="lock" show-password placeholder="请输入密码"></el-input>
                </el-form-item>

                <!-- 登录按钮 -->
                <el-form-item>
                    <el-button :disabled="!disabled" style="width: 20%; color: 143371;" type="primary" @click="login" >登 录</el-button>
                </el-form-item>
            </el-form>
        </div>
    </div>
</template>

<!-- 引入登录相关的JS文件 -->
<script src="@/utils/Login.js"></script>

<!-- 样式定义 -->
<style scoped>
.login-container {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-image: url('@/assets/a15.png');
    /* 其他背景属性 */
    background-repeat: no-repeat; /* 防止背景图片重复 */
    background-size: cover; /* 自适应元素大小 */
    background-position: center center; /* 图片居中对齐 */
}



.footer {
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    position: absolute;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    text-shadow: #000 0.1em 0.1em 0.1em;
    font-size: 14px;
}

.footer a,
.footer span {
    color: #fff;
}
span {
    color: #143371;
}
</style>